#!../../bin/linux-x86_64/Osc

## You may have to change Osc to something else
## everywhere it appears in this file

#< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocOsc")
epicsEnvSet("TOP","/home/ustc/work/osc/iocOsc")
epicsEnvSet("ASYN","/home/ustc/epics/modules/synApps_5_7/support/asyn-4-21")
epicsEnvSet("STREAM","/home/ustc/epics/modules/synApps_5_7/support/stream-2-6")
epicsEnvSet("EPICS_BASE","/home/ustc/epics/base-3.14.12.7")

epicsEnvSet "STREAM_PROTOCOL_PATH" "$(TOP)/db" 

epicsEnvSet "P" "$(P=Osc:)"
epicsEnvSet "R" "$(R=Test:)"
#cd "${TOP}" 

## Register all support components
dbLoadDatabase("../../dbd/Osc.dbd",0,0)
Osc_registerRecordDeviceDriver(pdbbase)

vxi11Configure("L0", "192.168.1.11", 0, 0.0, "inst0", 0)


## Load record instances
# dbLoadRecords("../../db/Osc.db","user=ustc")

dbLoadRecords("../../db/devOsc.db","P=$(P),R=$(R),PORT=L0,A=0") 

iocInit()

## Start any sequence programs
#seq sncOsc,"user=ustc"
